package com.hzit.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.TYPE })
public @interface RequiresPermissions {
	/**
	 * 需要校验的权限码
	 */
	String[] value() default {};

	/**
	 * 验证模式：AND | OR，默认AND
	 */
	Logical logical() default Logical.AND;
}
